From b5576397f74fe72dd388480b83331d0f8e522883 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timm=20B=C3=A4der?= Date: Thu, 19 Jul 2018 19:12:25 +0200 Subject: [PATCH] modelbutton: Remove snapshot implementation Previously, GtkBin was only snapshot'ing its one and only child, but nowadays it doesn't implement snapshot at all and the default implementation in GtkWidget just snapshots all child widgets, which is exactly what the implementation in gtkmodelbutton.c was doing. --- gtk/gtkmodelbutton.c | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/gtk/gtkmodelbutton.c b/gtk/gtkmodelbutton.c index 0b4fbf625d..29ff7bd21e 100644 --- a/gtk/gtkmodelbutton.c +++ b/gtk/gtkmodelbutton.c @@ -852,29 +852,6 @@ gtk_model_button_size_allocate (GtkWidget *widget, } } -static void -gtk_model_button_snapshot (GtkWidget *widget, - GtkSnapshot *snapshot) -{ - if (GTK_MODEL_BUTTON (widget)->iconic) - { - GTK_WIDGET_CLASS (gtk_model_button_parent_class)->snapshot (widget, snapshot); - } - else - { - GtkWidget *child; - GtkModelButton *button = GTK_MODEL_BUTTON (widget); - - if (gtk_widget_get_visible (button->indicator_widget)) - gtk_widget_snapshot_child (widget, button->indicator_widget, snapshot); - - child = gtk_bin_get_child (GTK_BIN (widget)); - if (child) - gtk_widget_snapshot_child (widget, child, snapshot); - } - -} - static void gtk_model_button_destroy (GtkWidget *widget) { @@ -931,7 +908,6 @@ gtk_model_button_class_init (GtkModelButtonClass *class) widget_class->measure = gtk_model_button_measure; widget_class->size_allocate = gtk_model_button_size_allocate; - widget_class->snapshot = gtk_model_button_snapshot; widget_class->destroy = gtk_model_button_destroy; widget_class->state_flags_changed = gtk_model_button_state_flags_changed; widget_class->direction_changed = gtk_model_button_direction_changed; -- 2.30.2